<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[content]" data-template="fieldtpl">
                <dd>
                    <ins>{:__('内容')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
            </dl>
            <!--以下是自定义模板的内容-->
            <script id="fieldtpl">
		        <dd class="form-inline">
			        <input type="text" name="<%=name%>[<%=index%>][text]" class="form-control" value="<%=row.name%>" size="30" />
			        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
		        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
		        </dd>
            </script>        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
